const getGoodsList = {
  resultCode: '0000',
  resultMessage: '成功！',
  data: {
    list: [{
      id: '1',
      number: '001',
      name: '红玫瑰',
      type: '玫瑰',
      price: '29',
      amount: '23',
      repertory: '999',
      originalPrice: '10',
      stockTime: '2019.9.2',
      description: '玫瑰中的精品',
      status: '上架中'
    },
    {
      id: '2',
      number: '002',
      name: '白月季',
      type: '月季',
      price: '18',
      amount: '60',
      repertory: '999',
      originalPrice: '6',
      stockTime: '2019.9.3',
      description: '月季中的精品',
      status: '下架中'
    }]
  }
}

const addGood = {
  resultCode: '0000',
  resultMessage: '成功！',
  data: {
    message: '创建成功'
  }
}

const removeGoods = {
  resultCode: '0000',
  resultMessage: '成功！',
  data: {
    message: '删除成功'
  }
}
export default [
  // 获取商品列表
  {
    url: '/goods/list',
    type: 'get',
    response: config => {
      return getGoodsList
    }
  },
  {
    url: '/goods/save',
    type: 'get',
    response: config => {
      return addGood
    }
  },
  {
    url: 'goods/',
    type: 'get',
    response: config => {
      return removeGoods
    }
  }
]
